package com.cacy.controller;

import com.cacy.pojo.User;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Project: test_maven_20250317
 * Package: com.cacy.controller
 * Class:   RequestController
 * Description:
 *
 * @Date: 2025/3/21 周五
 * @Time: 18:33
 * @Author: 凯齐
 */

@RestController
public class RequestController {
    @RequestMapping("/simpleParam")
    public String simpleParam(String name, Integer age) {
        System.out.println("name: " + name + ", age: " + age);
        return "OK";
    }

    @RequestMapping("/simplePojo")
    public String simplePojo(User user) {
        System.out.println(user);
        return "OK";
    }
}
